/*
 * ArtistaIterator.cpp - Grupo 5 - Prog. Avanzada 2011
 *
 *  Javier Dominguez - 4.901.161-6
 *  Marcelo Parada - 1.977.094-9
 *  Rodrigo Ruiz - 4.481.611-2
 *  Maximiliano Silvera - 4.106.938-6
 */

#include "ArtistaIterator.h"



ArtistaIterator::ArtistaIterator(IIterator *iter)
{
	this->iter = iter;
}

void ArtistaIterator::next()
{
	iter->next();
}


bool ArtistaIterator::hasCurrent()
{
	return iter->hasCurrent();
}


Artista *ArtistaIterator::current()
{
	return (Artista*) iter->current();
}



ArtistaIterator::~ArtistaIterator()
{
	iter->~IIterator();

	delete iter;
}

